from DrissionPage import ChromiumPage

dp = ChromiumPage()
dp.get("https://www.douyin.com/user/MS4wLjABAAAAZQ1eb8-saUwzSmP4H6ZulCeYm0tjEdRyur0-hZedEscyCcM50l8G5ssyg8eWH9Oy?from_tab_name=main&modal_id=7494899651007614245")
dp.listen.start('www.douyin.com/aweme/v1/web/comment')
commit_btn = dp.ele('.kT7icnwc')
commit_btn.click()

res = dp.listen.wait()
data = res.response.body
for comment in data['comments']:
    user = comment['user']['nickname']
    comment = comment['text']
    print(user,comment)
